package com.ejuornal.bean;

import java.util.Date;

public class Message {
    private long messageId;// 编号
    private String title;//标题
    private String content; //内容
    private Date sentDate; //发送时间
    private String sender; //发送人
    private String messageType; //1是已经读过的，0是没有读过的
    private String receiver; //收件人
	public long getMessageId() {
		return messageId;
	}
	public void setMessageId(long messageId) {
		this.messageId = messageId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getSentDate() {
		return sentDate;
	}
	public void setSentDate(Date sentDate) {
		this.sentDate = sentDate;
	}
	public String getSender() {
		return sender;
	}
	public void setSender(String sender) {
		this.sender = sender;
	}
	public String getMessageType() {
		return messageType;
	}
	public void setMessageType(String messageType) {
		this.messageType = messageType;
	}
	public String getReceiver() {
		return receiver;
	}
	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}
	@Override
	public String toString() {
		return "Message [messageId=" + messageId + ", title=" + title
				+ ", content=" + content + ", sentDate=" + sentDate
				+ ", sender=" + sender + ", messageType=" + messageType
				+ ", receiver=" + receiver + "]";
	}
	
}
